/*
 * Created on Jun 9, 2005
 *
 */
package com.erclab.internal.xpresso.security;

import com.erclab.internal.xpresso.Resource;
import com.erclab.internal.xpresso.exceptions.DataSourceException;
import com.erclab.internal.xpresso.reports.Report;

/**
 * @author Enrique Rodriguez.
 *
 */
public interface AccessController {
	
	public boolean isAllowedToUseResource(Resource theResource, User theUser);
	public boolean validateCredentials(SecurityCredentials sc) throws DataSourceException;

}
